import request from "@/utils/request";

// 查询公众号签到列表
export function listRecord(query) {
  return request({
    url: "/library/mbSignRecord/list",
    method: "get",
    params: query,
  });
}

// 查询公众号签到详细
export function getRecord(id) {
  return request({
    url: "/library/mbSignRecord/" + id,
    method: "get",
  });
}

// 新增公众号签到
export function addRecord(data) {
  return request({
    url: "/library/mbSignRecord",
    method: "post",
    data: data,
  });
}

// 修改公众号签到
export function updateRecord(data) {
  return request({
    url: "/library/mbSignRecord",
    method: "put",
    data: data,
  });
}

// 删除公众号签到
export function delRecord(id) {
  return request({
    url: "/library/mbSignRecord/" + id,
    method: "delete",
  });
}
